const mongoose = require("mongoose")

const Schema = mongoose.Schema
    // user模型===>users集合

const UserType = {
    username: String,
    password: String,
    gender: Number, //0-保密，1-男，2-女
    introduction: String, //简介
    avatar: String, //头像
    role: Number //1-管理员 2-编辑
}
const UserModel = mongoose.model("user", new Schema(UserType))

module.exports = UserModel